import request from '@/utils/request'

/*//查询数据图层分类树
export function getDataTypeLevel2AndDataTypeLevel3Tree() {
    return request({
        url: '/fxfzaqbz/jcData/getDataTypeLevel2AndDataTypeLevel3TreeForSubsystem',
        method: 'get',
    })
}*/

//查询版本列表
export function getSysDataVersion(query) {
    return request({
        url: '/fxfzaqbz/sysDataVersion/getDataView',
        method: 'post',
        data: query
    })
}

//查询版本号对应图层数据
export function queryDataByVersionCode(query) {
    return request({
        url: '/fxfzaqbz/sysDataVersion/getYwData',
        method: 'get',
        params: query
    })
}

//根据ID查询数据属性表
export function queryDataById(id) {
    return request({
        url: '/fxfzaqbz/gasholder/findById/'+id,
        method: 'get'
    })
}

//重点场所提交数据
export function submitYwData(ids) {
    return request({
        url: '/fxfzaqbz/sysDataVersion/submitYwData',
        method: 'post',
        data: ids
    })
}